
add_executable(img2h264)

target_sources(img2h264 PRIVATE main.cpp)

target_link_libraries(img2h264 
avcodec
avformat
avutil
swscale
Qt${QT_MAJOR_VERSION}::Widgets
Qt${QT_MAJOR_VERSION}::Core
Qt${QT_MAJOR_VERSION}::Network
Qt${QT_MAJOR_VERSION}::Gui
)


add_executable(img2h264_class)

target_sources(img2h264_class PRIVATE main2.cpp Encoder.cpp Encoder.h)

target_link_libraries(img2h264_class 
avcodec
avformat
avutil
swscale
Qt${QT_MAJOR_VERSION}::Widgets
Qt${QT_MAJOR_VERSION}::Core
Qt${QT_MAJOR_VERSION}::Network
Qt${QT_MAJOR_VERSION}::Gui
)
